package priv.yiyuan.example.design.adapter;

/**
 * 精确抽象
 *
 * @author YiYuan
 * @data 2025/8/5
 * @apoNote
 */
public class Circle extends Shape {

    private double x, y, radius;

    public Circle(DrawingAPI drawingAPI, double x, double y, double radius) {
        super(drawingAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    public void draw() {
        super.drawingAPI.drawCircle(x, y, radius);
    }
}
